//
//  SWList.h
//  BeautyGuessFree
//
//  Created by Charles How on 12-4-11.
//  Copyright (c) 2012年 hust. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "SW_ITEM.h"

#define kMinListLength  (500)
#define kSWList @"SWList"
#define kSWListVersion @"SWListVersion"
//#define kSWCount @"SWCount"

#define kSaveFileName   (@"DoNotChange")

////某个开发者的所有应用查询
#define kRequestURL @"http://itunes.apple.com/lookup?id=436338232&entity=software"

////某个软件查询
#define kRequestURLTest @"http://itunes.apple.com/lookup?id=442717674"


@interface SWList : NSObject
{
    NSString * mData;
    int mSWCount;
    NSMutableArray	*mSWList;     
    
    bool mbThreadOver;  //线程结束标志
}


@property (nonatomic, retain)  NSString * mData;
@property (nonatomic, readwrite)  int mSWCount;
@property (nonatomic, retain)  NSMutableArray	*mSWList; 


@property (nonatomic, readwrite)  bool mbThreadOver;  //线程结束标志

+(SWList*)sharedInstance;
-(void)parseData:(NSString *)dataPayload;
-(SWList *) getItemByIndex:(int)index;
-(int)getSWCount;
-(BOOL)getThreadOverFlag;

-(NSArray *)getDownloadDataByFile;

@end
